package top.lixunda.books3.entity;

import java.util.ArrayList;
import java.util.List;

public class SoldNoteDetailExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SoldNoteDetailExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSoldNoteIdIsNull() {
            addCriterion("soldNoteId is null");
            return (Criteria) this;
        }

        public Criteria andSoldNoteIdIsNotNull() {
            addCriterion("soldNoteId is not null");
            return (Criteria) this;
        }

        public Criteria andSoldNoteIdEqualTo(Long value) {
            addCriterion("soldNoteId =", value, "soldNoteId");
            return (Criteria) this;
        }

        public Criteria andSoldNoteIdNotEqualTo(Long value) {
            addCriterion("soldNoteId <>", value, "soldNoteId");
            return (Criteria) this;
        }

        public Criteria andSoldNoteIdGreaterThan(Long value) {
            addCriterion("soldNoteId >", value, "soldNoteId");
            return (Criteria) this;
        }

        public Criteria andSoldNoteIdGreaterThanOrEqualTo(Long value) {
            addCriterion("soldNoteId >=", value, "soldNoteId");
            return (Criteria) this;
        }

        public Criteria andSoldNoteIdLessThan(Long value) {
            addCriterion("soldNoteId <", value, "soldNoteId");
            return (Criteria) this;
        }

        public Criteria andSoldNoteIdLessThanOrEqualTo(Long value) {
            addCriterion("soldNoteId <=", value, "soldNoteId");
            return (Criteria) this;
        }

        public Criteria andSoldNoteIdIn(List<Long> values) {
            addCriterion("soldNoteId in", values, "soldNoteId");
            return (Criteria) this;
        }

        public Criteria andSoldNoteIdNotIn(List<Long> values) {
            addCriterion("soldNoteId not in", values, "soldNoteId");
            return (Criteria) this;
        }

        public Criteria andSoldNoteIdBetween(Long value1, Long value2) {
            addCriterion("soldNoteId between", value1, value2, "soldNoteId");
            return (Criteria) this;
        }

        public Criteria andSoldNoteIdNotBetween(Long value1, Long value2) {
            addCriterion("soldNoteId not between", value1, value2, "soldNoteId");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdIsNull() {
            addCriterion("bookGoodsId is null");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdIsNotNull() {
            addCriterion("bookGoodsId is not null");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdEqualTo(Long value) {
            addCriterion("bookGoodsId =", value, "bookGoodsId");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdNotEqualTo(Long value) {
            addCriterion("bookGoodsId <>", value, "bookGoodsId");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdGreaterThan(Long value) {
            addCriterion("bookGoodsId >", value, "bookGoodsId");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdGreaterThanOrEqualTo(Long value) {
            addCriterion("bookGoodsId >=", value, "bookGoodsId");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdLessThan(Long value) {
            addCriterion("bookGoodsId <", value, "bookGoodsId");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdLessThanOrEqualTo(Long value) {
            addCriterion("bookGoodsId <=", value, "bookGoodsId");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdIn(List<Long> values) {
            addCriterion("bookGoodsId in", values, "bookGoodsId");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdNotIn(List<Long> values) {
            addCriterion("bookGoodsId not in", values, "bookGoodsId");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdBetween(Long value1, Long value2) {
            addCriterion("bookGoodsId between", value1, value2, "bookGoodsId");
            return (Criteria) this;
        }

        public Criteria andBookGoodsIdNotBetween(Long value1, Long value2) {
            addCriterion("bookGoodsId not between", value1, value2, "bookGoodsId");
            return (Criteria) this;
        }

        public Criteria andNumberIsNull() {
            addCriterion("number is null");
            return (Criteria) this;
        }

        public Criteria andNumberIsNotNull() {
            addCriterion("number is not null");
            return (Criteria) this;
        }

        public Criteria andNumberEqualTo(Integer value) {
            addCriterion("number =", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotEqualTo(Integer value) {
            addCriterion("number <>", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThan(Integer value) {
            addCriterion("number >", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("number >=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThan(Integer value) {
            addCriterion("number <", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberLessThanOrEqualTo(Integer value) {
            addCriterion("number <=", value, "number");
            return (Criteria) this;
        }

        public Criteria andNumberIn(List<Integer> values) {
            addCriterion("number in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotIn(List<Integer> values) {
            addCriterion("number not in", values, "number");
            return (Criteria) this;
        }

        public Criteria andNumberBetween(Integer value1, Integer value2) {
            addCriterion("number between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("number not between", value1, value2, "number");
            return (Criteria) this;
        }

        public Criteria andPriceIsNull() {
            addCriterion("price is null");
            return (Criteria) this;
        }

        public Criteria andPriceIsNotNull() {
            addCriterion("price is not null");
            return (Criteria) this;
        }

        public Criteria andPriceEqualTo(Float value) {
            addCriterion("price =", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotEqualTo(Float value) {
            addCriterion("price <>", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThan(Float value) {
            addCriterion("price >", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceGreaterThanOrEqualTo(Float value) {
            addCriterion("price >=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThan(Float value) {
            addCriterion("price <", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceLessThanOrEqualTo(Float value) {
            addCriterion("price <=", value, "price");
            return (Criteria) this;
        }

        public Criteria andPriceIn(List<Float> values) {
            addCriterion("price in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotIn(List<Float> values) {
            addCriterion("price not in", values, "price");
            return (Criteria) this;
        }

        public Criteria andPriceBetween(Float value1, Float value2) {
            addCriterion("price between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andPriceNotBetween(Float value1, Float value2) {
            addCriterion("price not between", value1, value2, "price");
            return (Criteria) this;
        }

        public Criteria andTotalPriceIsNull() {
            addCriterion("totalPrice is null");
            return (Criteria) this;
        }

        public Criteria andTotalPriceIsNotNull() {
            addCriterion("totalPrice is not null");
            return (Criteria) this;
        }

        public Criteria andTotalPriceEqualTo(Float value) {
            addCriterion("totalPrice =", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceNotEqualTo(Float value) {
            addCriterion("totalPrice <>", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceGreaterThan(Float value) {
            addCriterion("totalPrice >", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceGreaterThanOrEqualTo(Float value) {
            addCriterion("totalPrice >=", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceLessThan(Float value) {
            addCriterion("totalPrice <", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceLessThanOrEqualTo(Float value) {
            addCriterion("totalPrice <=", value, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceIn(List<Float> values) {
            addCriterion("totalPrice in", values, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceNotIn(List<Float> values) {
            addCriterion("totalPrice not in", values, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceBetween(Float value1, Float value2) {
            addCriterion("totalPrice between", value1, value2, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andTotalPriceNotBetween(Float value1, Float value2) {
            addCriterion("totalPrice not between", value1, value2, "totalPrice");
            return (Criteria) this;
        }

        public Criteria andDiscountIsNull() {
            addCriterion("discount is null");
            return (Criteria) this;
        }

        public Criteria andDiscountIsNotNull() {
            addCriterion("discount is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountEqualTo(Float value) {
            addCriterion("discount =", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotEqualTo(Float value) {
            addCriterion("discount <>", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountGreaterThan(Float value) {
            addCriterion("discount >", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountGreaterThanOrEqualTo(Float value) {
            addCriterion("discount >=", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountLessThan(Float value) {
            addCriterion("discount <", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountLessThanOrEqualTo(Float value) {
            addCriterion("discount <=", value, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountIn(List<Float> values) {
            addCriterion("discount in", values, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotIn(List<Float> values) {
            addCriterion("discount not in", values, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountBetween(Float value1, Float value2) {
            addCriterion("discount between", value1, value2, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountNotBetween(Float value1, Float value2) {
            addCriterion("discount not between", value1, value2, "discount");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceIsNull() {
            addCriterion("discountTotalPrice is null");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceIsNotNull() {
            addCriterion("discountTotalPrice is not null");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceEqualTo(Float value) {
            addCriterion("discountTotalPrice =", value, "discountTotalPrice");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceNotEqualTo(Float value) {
            addCriterion("discountTotalPrice <>", value, "discountTotalPrice");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceGreaterThan(Float value) {
            addCriterion("discountTotalPrice >", value, "discountTotalPrice");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceGreaterThanOrEqualTo(Float value) {
            addCriterion("discountTotalPrice >=", value, "discountTotalPrice");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceLessThan(Float value) {
            addCriterion("discountTotalPrice <", value, "discountTotalPrice");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceLessThanOrEqualTo(Float value) {
            addCriterion("discountTotalPrice <=", value, "discountTotalPrice");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceIn(List<Float> values) {
            addCriterion("discountTotalPrice in", values, "discountTotalPrice");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceNotIn(List<Float> values) {
            addCriterion("discountTotalPrice not in", values, "discountTotalPrice");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceBetween(Float value1, Float value2) {
            addCriterion("discountTotalPrice between", value1, value2, "discountTotalPrice");
            return (Criteria) this;
        }

        public Criteria andDiscountTotalPriceNotBetween(Float value1, Float value2) {
            addCriterion("discountTotalPrice not between", value1, value2, "discountTotalPrice");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}